Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <script> function goBack() { window.history.back() } </script> </head> <body> <button onclick="goBack()">Go Back</button> <p>Clicking on the Back button here will not result in any action, because there is no previous URL in the history list.</p> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_history_back by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:37:27 GMT --> </html>
Result:
Try it Yourself - © w3schools.com